<!--
 * @Description: 描述信息
 * @Version: 版本号
 * @Author: xuebao
 * @Date: 2023-12-04 16:42:26
 * @LastEditors: renmengxue
 * @LastEditTime: 2023-12-04 17:02:48
-->
<template>
  <li class="dropdown-option" :class="{ 'is-disabled': disabled }">
    <slot></slot>
  </li>
</template>

<script lang='ts' setup >
import { defineProps } from 'vue'
defineProps({
  disabled: {
    type: Boolean,
    default: false
  }
})
</script>

<style>
.dropdown-option.is-disabled * {
  color: #6c757d;
  pointer-events: none;
  background-color: transparent;
}
</style>
